package com.fram.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fram.bean.admin.volume.response.VolumeListResponse;
import com.fram.entity.VolumeQuestion;

public interface VolumeQuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(VolumeQuestion record);
    /** 添加问题表  **/
    int insertSelective(VolumeListResponse record);
    
    VolumeQuestion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(VolumeQuestion record);

    int updateByPrimaryKey(VolumeQuestion record);
    //后台-管理列表 查询所有问题listVolume
    List<VolumeQuestion> listQuestion(VolumeQuestion request);
    //后台-详情点击问卷详情
    VolumeListResponse selectQuestionById(@Param("id") Long id);
    
    Long selectByPrimary(@Param("direction") String direction);

}